package designpattern.Builder.demo02;

/**
 * @author cyt
 * @create 2020-04-24 14:15
 */

// 具体产品
public class Product {

    // 默认的属性
    private String builderA = "A";
    private String builderB = "B";
    private String builderC = "C";
    private String builderD = "D";

    public Product(String builderA, String builderB, String builderC, String builderD) {
        this.builderA = builderA;
        this.builderB = builderB;
        this.builderC = builderC;
        this.builderD = builderD;
    }

    public Product() {
    }

    @Override
    public String toString() {
        return "Product{" +
                "builderA='" + builderA + '\'' +
                ", builderB='" + builderB + '\'' +
                ", builderC='" + builderC + '\'' +
                ", builderD='" + builderD + '\'' +
                '}';
    }

    public String getBuilderA() {
        return builderA;
    }

    public void setBuilderA(String builderA) {
        this.builderA = builderA;
    }

    public String getBuilderB() {
        return builderB;
    }

    public void setBuilderB(String builderB) {
        this.builderB = builderB;
    }

    public String getBuilderC() {
        return builderC;
    }

    public void setBuilderC(String builderC) {
        this.builderC = builderC;
    }

    public String getBuilderD() {
        return builderD;
    }

    public void setBuilderD(String builderD) {
        this.builderD = builderD;
    }
}
